home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 3.iso
/
bin
/
amIOnCDROMTree
next >
Wrap
Text File
|
1996-11-11
|
357b
|
20 lines
#!/bin/csh -f
#
# script to detect if the user is on the CDROM tree
# logic : keep looking for IM file up in the hierarchy
#
set path = (/usr/bsd /bin /usr/bin /usr/sbin /usr/bin/X11)
set curdir = `pwd`
while ( "$curdir" != "/" && "$curdir" != "." )
if ( -e $curdir/IM ) then
exit 1
endif
set curdir = `dirname $curdir`
end
exit 0